﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Hasiu.Mvc.ViewModels.ProductTypeViewModel>" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Type</title>
    <link href="/css/zhx.css" rel="stylesheet" type="text/css" />
    <script src="/js/zhx.js" type="text/javascript"></script>
</head>
<body>
    <table class="table_grid">
        <tr class="header">
            <td>类型名</td>
            <td>删除</td>
        </tr>
        <% 
            foreach (var v in Model.GetProductTypeList)
            { 
        %>
        <tr>
            <td><a href="/admin/product/type.aspx?id=<%= v.Id %>"><%= v.Name %></a></td>
            <td><a href="/admin/product/type/del.aspx?id=<%= v.Id %>" class="tssc" title="删除">X</a></td>
        </tr>
        <%
            }
        %>
    </table>
    <form class="yz" action="" method="post">
        <table class="table_frame">
            <tr class="header">
                <td colspan="100">
                    <%= Model.GetProductType == null ? "添加苗木类型" : "修改苗木类型 <a href='/admin/product/type.aspx'/>返回添加苗木类型</a>"%>
                </td>
            </tr>
            <tr>
                <td>类型名</td>
                <td>
                    <input type="text" name="Name" style="width:250px;" value="<%= Model.GetProductType == null ? "" : Model.GetProductType.Name %>" class="{required:true}" />
                </td>
            </tr>
            <tr class="footer">
                <td colspan="100">
                    <input class="btnSave" type="submit" value="保存" />
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
